kmpkg_from_gitee(
    OUT_SOURCE_PATH SOURCE_PATH
    REPO kumo-pub/shark
    REF "v${VERSION}"
    SHA512 40f6888bfe278f5c3cd33f4c83e01a7ecfc7751ce61a5408a2c8b8ebbe4d1336c68192c85ee59c756a4976a46c85187d41722cba8efe4407d1721425357f3a49
    HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
        -DKMCMAKE_BUILD_BENCHMARK=OFF
)

kmpkg_cmake_install(
    DISABLE_PARALLEL
)

kmpkg_copy_pdbs()
kmpkg_cmake_config_fixup(PACKAGE_NAME shark CONFIG_PATH lib/cmake/shark)
kmpkg_fixup_pkgconfig()

kmpkg_copy_tools(TOOL_NAMES shark AUTO_CLEAN)
kmpkg_copy_tools(TOOL_NAMES sharkc-cpp AUTO_CLEAN)
kmpkg_copy_tools(TOOL_NAMES sharkc-sk AUTO_CLEAN)


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
